home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 November / Macworld (1999-11).dmg / Updaters / GoLive 4.01 Update / Actions Plus Update 1.0.1 / DailyImageURL.action
Text File  |  1999-07-21  |  18KB  |  309 lines

  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5.         <meta name="generator" content="Adobe GoLive 4">
  6.         <title>Daily Image URL action</title>
  7.     </head>
  8.  
  9.     <body bgcolor="white">
  10.         <center>
  11.             <font size="6">Daily Image URL Action 1.0</font>
  12.             <p><font>© 1999, Adobe Systems Incorporated<br>
  13.             All rights reserved.</font></p>
  14.             <p><font>script by Matt Ridley
  15.             <hr>
  16.             </font></p>
  17.         </center>
  18.         <p>
  19.         <csactionclass name="Daily Image URL" function="dailyImageURL" nsversion="3" ieversion="4" vscroll> </p>
  20.         <p>
  21.         <csactionparam name="imageName" type="GLActionImageParam"></p>
  22.         <p>
  23.         <csactionparam name="monURL" type="GLActionURLParam"></p>
  24.         <p>
  25.         <csactionparam name="tuesURL" type="GLActionURLParam"></p>
  26.         <p>
  27.         <csactionparam name="wedsURL" type="GLActionURLParam"></p>
  28.         <p>
  29.         <csactionparam name="thursURL" type="GLActionURLParam"></p>
  30.         <p>
  31.         <csactionparam name="friURL" type="GLActionURLParam"></p>
  32.         <p>
  33.         <csactionparam name="satURL" type="GLActionURLParam"></p>
  34.         <p>
  35.         <csactionparam name="sunURL" type="GLActionURLParam"> </p>
  36.         <p></csactionclass>
  37.          </p>
  38.         <p>
  39.         <script language="JavaScript1.2" src="../GlobalScripts/IE.scpt"></script>
  40.          </p>
  41.         <p>
  42.         <script language="JavaScript" cyberversion="N1.2"><!--
  43. // Script copyright 1999, Adobe Systems Incorporated. All rights reserved.
  44.  
  45. function initIArray() {
  46. this.length = initIArray.arguments.length;
  47. for (var i = 0; i < this.length; i++)
  48. this[i+1] = initIArray.arguments[i]; 
  49. }
  50.  
  51. function dailyImageURL(action) {
  52. var dateArray = new
  53. initIArray("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");
  54. var today = new Date();
  55. var day = dateArray[today.getDay()];
  56. if (today.getDay() == 0) { day = "Sunday"; }
  57. var img = null;
  58. if (document.images) {
  59.     if (!IsIE()) img = CSFindElement(action[1],0);
  60.     else img = document.images[action[1]];
  61.         if (img) {
  62.             if (day == "Monday" && action[2] != "(Empty Reference!)") img.src = action[2]
  63.             if (day == "Tuesday" && action[3] != "(Empty Reference!)") img.src = action[3]
  64.             if (day == "Wednesday" && action[4] != "(Empty Reference!)") img.src = action[4]
  65.             if (day == "Thursday" && action[5] != "(Empty Reference!)") img.src = action[5]
  66.             if (day == "Friday" && action[6] != "(Empty Reference!)") img.src = action[6]
  67.             if (day == "Saturday" && action[7] != "(Empty Reference!)") img.src = action[7]
  68.             if (day == "Sunday" && action[8] != "(Empty Reference!)") img.src = action[8]
  69.         }  
  70. }  
  71. }
  72. // -->
  73.         </script>
  74.          </p>
  75.         <p>
  76.         <table cool width="250" height="450" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  77.             <tr height="1" cntrlrow>
  78.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  79.                 <td width="9" height="1"><spacer type="block" width="9" height="1"></td>
  80.                 <td width="8" height="1"><spacer type="block" width="8" height="1"></td>
  81.                 <td width="8" height="1"><spacer type="block" width="8" height="1"></td>
  82.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  83.                 <td width="5" height="1"><spacer type="block" width="5" height="1"></td>
  84.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  85.                 <td width="3" height="1"><spacer type="block" width="3" height="1"></td>
  86.                 <td width="44" height="1"><spacer type="block" width="44" height="1"></td>
  87.                 <td width="165" height="1"><spacer type="block" width="165" height="1"></td>
  88.             </tr>
  89.             <tr height="11">
  90.                 <td width="1" height="11"><spacer type="block" width="1" height="11"></td>
  91.                 <td width="9" height="11"><spacer type="block" width="9" height="11"></td>
  92.                 <td width="8" height="11"><spacer type="block" width="8" height="11"></td>
  93.                 <td width="8" height="11"><spacer type="block" width="8" height="11"></td>
  94.                 <td width="4" height="11"><spacer type="block" width="4" height="11"></td>
  95.                 <td width="5" height="11"><spacer type="block" width="5" height="11"></td>
  96.                 <td width="1" height="11"><spacer type="block" width="1" height="11"></td>
  97.                 <td width="3" height="11"><spacer type="block" width="3" height="11"></td>
  98.                 <td width="44" height="11"><spacer type="block" width="44" height="11"></td>
  99.                 <td width="165" height="11"><spacer type="block" width="165" height="11"></td>
  100.             </tr>
  101.             <tr height="37">
  102.                 <td width="1" height="37"><spacer type="block" width="1" height="37"></td>
  103.                 <td width="9" height="37"><spacer type="block" width="9" height="37"></td>
  104.                 <td width="238" height="37" colspan="8" rowspan="1" valign="top" align="left" xpos="9">
  105.                     <csactioncntrl type="InfoText" value="This Action will swap the base image with the selected image for each day of the week." x="9" y="11" width="221" height="26" alignx="right" aligny="top">
  106.                 </td>
  107.             </tr>
  108.             <tr height="3">
  109.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  110.                 <td width="9" height="3"><spacer type="block" width="9" height="3"></td>
  111.                 <td width="8" height="3"><spacer type="block" width="8" height="3"></td>
  112.                 <td width="8" height="3"><spacer type="block" width="8" height="3"></td>
  113.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  114.                 <td width="5" height="3"><spacer type="block" width="5" height="3"></td>
  115.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  116.                 <td width="3" height="3"><spacer type="block" width="3" height="3"></td>
  117.                 <td width="44" height="3"><spacer type="block" width="44" height="3"></td>
  118.                 <td width="165" height="25" colspan="1" rowspan="2" valign="top" align="left" xpos="82">
  119.                     <csactioncntrl name="imageName" x="82" y="48" width="144" height="21" alignx="scale" aligny="top">
  120.                 </td>
  121.             </tr>
  122.             <tr height="22">
  123.                 <td width="1" height="22"><spacer type="block" width="1" height="22"></td>
  124.                 <td width="9" height="22"><spacer type="block" width="9" height="22"></td>
  125.                 <td width="8" height="22"><spacer type="block" width="8" height="22"></td>
  126.                 <td width="8" height="22"><spacer type="block" width="8" height="22"></td>
  127.                 <td width="4" height="22"><spacer type="block" width="4" height="22"></td>
  128.                 <td width="5" height="22"><spacer type="block" width="5" height="22"></td>
  129.                 <td width="48" height="22" colspan="3" rowspan="1" valign="top" align="left" xpos="34">
  130.                     <csactioncntrl type="StaticText" value="Image:" x="34" y="51" width="43" height="14" alignx="right" aligny="top">
  131.                 </td>
  132.             </tr>
  133.             <tr height="3">
  134.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  135.                 <td width="9" height="3"><spacer type="block" width="9" height="3"></td>
  136.                 <td width="8" height="3"><spacer type="block" width="8" height="3"></td>
  137.                 <td width="8" height="3"><spacer type="block" width="8" height="3"></td>
  138.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  139.                 <td width="5" height="3"><spacer type="block" width="5" height="3"></td>
  140.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  141.                 <td width="3" height="3"><spacer type="block" width="3" height="3"></td>
  142.                 <td width="44" height="3"><spacer type="block" width="44" height="3"></td>
  143.                 <td width="165" height="52" colspan="1" rowspan="2" valign="top" align="left" xpos="82">
  144.                     <csactioncntrl name="monURL" x="82" y="73" width="144" height="49" alignx="scale" aligny="top">
  145.                 </td>
  146.             </tr>
  147.             <tr height="49">
  148.                 <td width="1" height="49"><spacer type="block" width="1" height="49"></td>
  149.                 <td width="9" height="49"><spacer type="block" width="9" height="49"></td>
  150.                 <td width="8" height="49"><spacer type="block" width="8" height="49"></td>
  151.                 <td width="8" height="49"><spacer type="block" width="8" height="49"></td>
  152.                 <td width="4" height="49"><spacer type="block" width="4" height="49"></td>
  153.                 <td width="5" height="49"><spacer type="block" width="5" height="49"></td>
  154.                 <td width="48" height="49" colspan="3" rowspan="1" valign="top" align="left" xpos="34">
  155.                     <csactioncntrl type="StaticText" value="Monday Image:" x="34" y="76" width="43" height="26" alignx="right" aligny="top">
  156.                 </td>
  157.             </tr>
  158.             <tr height="3">
  159.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  160.                 <td width="9" height="3"><spacer type="block" width="9" height="3"></td>
  161.                 <td width="8" height="3"><spacer type="block" width="8" height="3"></td>
  162.                 <td width="8" height="3"><spacer type="block" width="8" height="3"></td>
  163.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  164.                 <td width="5" height="3"><spacer type="block" width="5" height="3"></td>
  165.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  166.                 <td width="3" height="3"><spacer type="block" width="3" height="3"></td>
  167.                 <td width="44" height="3"><spacer type="block" width="44" height="3"></td>
  168.                 <td width="165" height="52" colspan="1" rowspan="2" valign="top" align="left" xpos="82">
  169.                     <csactioncntrl name="tuesURL" x="82" y="125" width="144" height="49" alignx="scale" aligny="top">
  170.                 </td>
  171.             </tr>
  172.             <tr height="49">
  173.                 <td width="1" height="49"><spacer type="block" width="1" height="49"></td>
  174.                 <td width="9" height="49"><spacer type="block" width="9" height="49"></td>
  175.                 <td width="8" height="49"><spacer type="block" width="8" height="49"></td>
  176.                 <td width="8" height="49"><spacer type="block" width="8" height="49"></td>
  177.                 <td width="4" height="49"><spacer type="block" width="4" height="49"></td>
  178.                 <td width="53" height="49" colspan="4" rowspan="1" valign="top" align="left" xpos="29">
  179.                     <csactioncntrl type="StaticText" value="Tuesday Image:" x="29" y="128" width="46" height="26" alignx="right" aligny="top">
  180.                 </td>
  181.             </tr>
  182.             <tr height="3">
  183.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  184.                 <td width="9" height="3"><spacer type="block" width="9" height="3"></td>
  185.                 <td width="8" height="3"><spacer type="block" width="8" height="3"></td>
  186.                 <td width="8" height="3"><spacer type="block" width="8" height="3"></td>
  187.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  188.                 <td width="5" height="3"><spacer type="block" width="5" height="3"></td>
  189.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  190.                 <td width="3" height="3"><spacer type="block" width="3" height="3"></td>
  191.                 <td width="44" height="3"><spacer type="block" width="44" height="3"></td>
  192.                 <td width="165" height="52" colspan="1" rowspan="2" valign="top" align="left" xpos="82">
  193.                     <csactioncntrl name="wedsURL" x="82" y="177" width="144" height="49" alignx="scale" aligny="top">
  194.                 </td>
  195.             </tr>
  196.             <tr height="49">
  197.                 <td width="1" height="49"><spacer type="block" width="1" height="49"></td>
  198.                 <td width="9" height="49"><spacer type="block" width="9" height="49"></td>
  199.                 <td width="8" height="49"><spacer type="block" width="8" height="49"></td>
  200.                 <td width="65" height="49" colspan="6" rowspan="1" valign="top" align="left" xpos="17">
  201.                     <csactioncntrl type="StaticText" value="Wednesday Image:" x="17" y="180" width="60" height="26" alignx="right" aligny="top">
  202.                 </td>
  203.             </tr>
  204.             <tr height="3">
  205.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  206.                 <td width="9" height="3"><spacer type="block" width="9" height="3"></td>
  207.                 <td width="8" height="3"><spacer type="block" width="8" height="3"></td>
  208.                 <td width="8" height="3"><spacer type="block" width="8" height="3"></td>
  209.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  210.                 <td width="5" height="3"><spacer type="block" width="5" height="3"></td>
  211.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  212.                 <td width="3" height="3"><spacer type="block" width="3" height="3"></td>
  213.                 <td width="44" height="3"><spacer type="block" width="44" height="3"></td>
  214.                 <td width="165" height="52" colspan="1" rowspan="2" valign="top" align="left" xpos="82">
  215.                     <csactioncntrl name="thursURL" x="82" y="229" width="144" height="49" alignx="scale" aligny="top">
  216.                 </td>
  217.             </tr>
  218.             <tr height="49">
  219.                 <td width="1" height="49"><spacer type="block" width="1" height="49"></td>
  220.                 <td width="9" height="49"><spacer type="block" width="9" height="49"></td>
  221.                 <td width="8" height="49"><spacer type="block" width="8" height="49"></td>
  222.                 <td width="8" height="49"><spacer type="block" width="8" height="49"></td>
  223.                 <td width="57" height="49" colspan="5" rowspan="1" valign="top" align="left" xpos="25">
  224.                     <csactioncntrl type="StaticText" value="Thursday Image:" x="25" y="232" width="54" height="26" alignx="right" aligny="top">
  225.                 </td>
  226.             </tr>
  227.             <tr height="3">
  228.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  229.                 <td width="9" height="3"><spacer type="block" width="9" height="3"></td>
  230.                 <td width="8" height="3"><spacer type="block" width="8" height="3"></td>
  231.                 <td width="8" height="3"><spacer type="block" width="8" height="3"></td>
  232.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  233.                 <td width="5" height="3"><spacer type="block" width="5" height="3"></td>
  234.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  235.                 <td width="3" height="3"><spacer type="block" width="3" height="3"></td>
  236.                 <td width="44" height="3"><spacer type="block" width="44" height="3"></td>
  237.                 <td width="165" height="52" colspan="1" rowspan="2" valign="top" align="left" xpos="82">
  238.                     <csactioncntrl name="friURL" x="82" y="281" width="144" height="49" alignx="scale" aligny="top">
  239.                 </td>
  240.             </tr>
  241.             <tr height="49">
  242.                 <td width="1" height="49"><spacer type="block" width="1" height="49"></td>
  243.                 <td width="9" height="49"><spacer type="block" width="9" height="49"></td>
  244.                 <td width="8" height="49"><spacer type="block" width="8" height="49"></td>
  245.                 <td width="8" height="49"><spacer type="block" width="8" height="49"></td>
  246.                 <td width="4" height="49"><spacer type="block" width="4" height="49"></td>
  247.                 <td width="5" height="49"><spacer type="block" width="5" height="49"></td>
  248.                 <td width="1" height="49"><spacer type="block" width="1" height="49"></td>
  249.                 <td width="3" height="49"><spacer type="block" width="3" height="49"></td>
  250.                 <td width="44" height="49" colspan="1" rowspan="1" valign="top" align="left" xpos="38">
  251.                     <csactioncntrl type="StaticText" value="Friday Image:" x="38" y="284" width="40" height="26" alignx="right" aligny="top">
  252.                 </td>
  253.             </tr>
  254.             <tr height="3">
  255.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  256.                 <td width="9" height="3"><spacer type="block" width="9" height="3"></td>
  257.                 <td width="8" height="3"><spacer type="block" width="8" height="3"></td>
  258.                 <td width="8" height="3"><spacer type="block" width="8" height="3"></td>
  259.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  260.                 <td width="5" height="3"><spacer type="block" width="5" height="3"></td>
  261.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  262.                 <td width="3" height="3"><spacer type="block" width="3" height="3"></td>
  263.                 <td width="44" height="3"><spacer type="block" width="44" height="3"></td>
  264.                 <td width="165" height="52" colspan="1" rowspan="2" valign="top" align="left" xpos="82">
  265.                     <csactioncntrl name="satURL" x="82" y="333" width="144" height="49" alignx="scale" aligny="top">
  266.                 </td>
  267.             </tr>
  268.             <tr height="49">
  269.                 <td width="1" height="49"><spacer type="block" width="1" height="49"></td>
  270.                 <td width="9" height="49"><spacer type="block" width="9" height="49"></td>
  271.                 <td width="8" height="49"><spacer type="block" width="8" height="49"></td>
  272.                 <td width="8" height="49"><spacer type="block" width="8" height="49"></td>
  273.                 <td width="57" height="49" colspan="5" rowspan="1" valign="top" align="left" xpos="25">
  274.                     <csactioncntrl type="StaticText" value="Saturday Image:" x="25" y="336" width="51" height="26" alignx="right" aligny="top">
  275.                 </td>
  276.             </tr>
  277.             <tr height="3">
  278.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  279.                 <td width="9" height="3"><spacer type="block" width="9" height="3"></td>
  280.                 <td width="8" height="3"><spacer type="block" width="8" height="3"></td>
  281.                 <td width="8" height="3"><spacer type="block" width="8" height="3"></td>
  282.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  283.                 <td width="5" height="3"><spacer type="block" width="5" height="3"></td>
  284.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  285.                 <td width="3" height="3"><spacer type="block" width="3" height="3"></td>
  286.                 <td width="44" height="3"><spacer type="block" width="44" height="3"></td>
  287.                 <td width="165" height="62" colspan="1" rowspan="2" valign="top" align="left" xpos="82">
  288.                     <csactioncntrl name="sunURL" x="82" y="385" width="144" height="49" alignx="scale" aligny="top">
  289.                 </td>
  290.             </tr>
  291.             <tr height="59">
  292.                 <td width="1" height="59"><spacer type="block" width="1" height="59"></td>
  293.                 <td width="9" height="59"><spacer type="block" width="9" height="59"></td>
  294.                 <td width="8" height="59"><spacer type="block" width="8" height="59"></td>
  295.                 <td width="8" height="59"><spacer type="block" width="8" height="59"></td>
  296.                 <td width="4" height="59"><spacer type="block" width="4" height="59"></td>
  297.                 <td width="5" height="59"><spacer type="block" width="5" height="59"></td>
  298.                 <td width="1" height="59"><spacer type="block" width="1" height="59"></td>
  299.                 <td width="47" height="59" colspan="2" rowspan="1" valign="top" align="left" xpos="35">
  300.                     <csactioncntrl type="StaticText" value="Sunday Image:" x="35" y="388" width="41" height="26" alignx="right" aligny="top">
  301.                 </td>
  302.             </tr>
  303.         </table>
  304.         </p>
  305.         <p> 
  306.     </body>
  307.  
  308. </html>
  309.